package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    Long submitOrder(OrderInfo orderInfo);

    boolean hasStock(Long skuId, Integer skuNum);

    void cancelOrder(Long orderId, String uuid);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId, ProcessStatus paid);

    void sendOrderStatus(Long orderId);

    List<Map<String,Object>> orderSplit(Long orderId, String wareSkuMap);
}
